//
//  SYS_WPJ_RequestHttpTool.m
//  System_App
//
//  Created by 魏配军 on 2017/11/28.
//  Copyright © 2017年 czy001. All rights reserved.
//

#import "SYS_WPJ_RequestHttpTool.h"

@implementation SYS_WPJ_RequestHttpTool
//系统端登录
+(void)getSysLogin:(NSDictionary *)params success:(ReturnValueBlock)success failure:(FailureBlock)failure
{
    NSString *path=[SERVICE_IP stringByAppendingString:@"/jf/adm/sysapp/login"];
    [NetRequestClass NetRequestPOSTWithRequestURL:path WithParameter:params WithReturnValeuBlock:^(id returnValue) {
        success(returnValue);
        
    } WithErrorCodeBlock:^(id errorCode) {
        
    } WithFailureBlock:^{
        failure(failure);
    }];
}

//忘记密码获取验证码
+(void)remeberPwdToGetEmsCode:(NSDictionary *)params success:(ReturnValueBlock)success failure:(FailureBlock)failure
{
    NSString *path=[SERVICE_IP stringByAppendingString:@"/jf/adm/sysapp/reqSmsCodeReset"];
    [NetRequestClass NetRequestPOSTWithRequestURL:path WithParameter:params WithReturnValeuBlock:^(id returnValue) {
        success(returnValue);
        
    } WithErrorCodeBlock:^(id errorCode) {
        
    } WithFailureBlock:^{
        failure(failure);
    }];
}

//忘记密码找回密码
+(void)remeberPwdToFindPwd:(NSDictionary *)params success:(ReturnValueBlock)success failure:(FailureBlock)failure
{
    NSString *path=[SERVICE_IP stringByAppendingString:@"/jf/adm/sysapp/resetPasswdSms"];
    [NetRequestClass NetRequestPOSTWithRequestURL:path WithParameter:params WithReturnValeuBlock:^(id returnValue) {
        success(returnValue);
        
    } WithErrorCodeBlock:^(id errorCode) {
        
    } WithFailureBlock:^{
        failure(failure);
    }];
}

//查询系统app权限
+(void) checkAppJurisdiction:(NSDictionary *)params success:(ReturnValueBlock)success failure:(FailureBlock)failure
{
    NSString *path=[SERVICE_IP stringByAppendingString:@"/jf/adm/sysapp/getSysAppPermission"];
    [NetRequestClass NetRequestPOSTWithRequestURL:path WithParameter:params WithReturnValeuBlock:^(id returnValue) {
        success(returnValue);
        
    } WithErrorCodeBlock:^(id errorCode) {
        
    } WithFailureBlock:^{
        failure(failure);
    }];
}










@end
